<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>订单详细</title>
<style type="text/css">
* {
	font-size: 11pt;
}

div {
	border: 2px solid gray;
	width: 75px;
	height: 75px;
	text-align: center;
}

li {
	margin: 10px;
}

img{
	width:70px;
	height:70px;
}
</style>
</head>
<body>
	<h1>当前订单</h1>
	<table border="1" width="100%" cellspacing="0" background="black">
		<tr bgcolor="gray" bordercolor="gray">
			<td colspan="6">
				订单编号：${order.oid } 成交时间：<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${order.ordertime }"/>
				金额：<font color="red"><b>${order.total }元</b></font>
			</td>
		</tr>
		
		<c:forEach items="${order.orderItemList }" var="orderItem">
		<tr bordercolor="gray" align="center">
			<td width="15%">
				<div><img src="<c:url value='/${orderItem.book.image }'/>" height="75"></div>
			</td>
			<td>${orderItem.book.bname }</td>
			<td>${orderItem.book.author }</td>
			<td>${orderItem.book.price }元</td>
			<td>${orderItem.count }</td>
			<td>${orderItem.subtotal }元</td>
		</tr>
		</c:forEach>
	</table>
	<br/>
	<form method="post" action="" id="form" target="">
		收货地址：<input type="text" name="address" size="50" value="深圳市南山区暨南大学深圳旅游学院"><br/>
		选择付款方式：<br/>
		<input type="radio" name="pay" checked="checked"/>支付宝
		<input type="radio" name="pay"/>微信支付
	</form>
	<a href="javascript:document.getElementById('form').submit();">点击付款</a>
</body>
</html>